package kz.kstu.aec.curve.factory;

import sun.security.ec.NamedCurve;

import java.security.spec.*;

/**
 * @author Filipp_Stankevich
 *         created: 25.01.12 15:24
 */
public class EllipticCurveFactory {

    private static final String ELLIPTIC_CURVE_NAME = "secp256r1";

    private EllipticCurveFactory() {
    }

    public static ECParameterSpec getEllipticCurveSpec() {
        return getEllipticCurveSpec(ELLIPTIC_CURVE_NAME);
    }

    public static ECParameterSpec getEllipticCurveSpec(String curveName) {
        return NamedCurve.getECParameterSpec(curveName);
    }
}
